package main

import(
	"log"
	"net/http"
	"github.com/gin-gonic/gin"
)

type Rev struct{
	C chan string
}

func (this *Rev) start(){
	for{
		select{
		case msg := <- this.C:
			log.Println(msg)
		}
	}
}
func (this *Rev) Test(c *gin.Context){
	//fmt.Fprintln(w, "hello world")
	defer c.String(http.StatusOK, "ok")

}